#include <QCoreApplication>
#include <iostream>
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication w(argc, argv);
    cout<<"vvedite celoe chislo: ";
    int* a=new int;
    cin>>*a;
    if(*a%2==0)
    {
        cout<<"Chislo chetnoe";
    }
    else
    {
        cout<<"Chislo nechetnoe";
    }
    cout<<endl;
    switch(*a%2)
    {
    case 0:cout<<"Chislo chetnoe";break;
    case 1:cout<<"Chislo nechetnoe";break;
    }
    delete a;
    cout<<endl<<"Razmer masiva: ";
    int size;
    cin>>size;
    int* massiv = new int[size];
    for (int i=0;i<size;i++)
    {
        massiv[i]=i+1;
    }
    cout<<endl;
    for (int i=0;i<size;i++)
    {
        cout<<massiv[i]<<" ";
    }
    delete []massiv;
    return w.exec();
}
